
/**
** \file       exec_redirection.c
**
** \brief      this function execute redirection rule
**
** \author     Ben M'rad Hanna, Laterem Hamza, Boillot Ulysse, De Olivera
**             Guillaume and Nguyen Viet Dung
**
** \version    1.0
**
** \date       28 November 2010
**
*/

#include "execution.h"

int             exec_redir(s_redir              *node)
{
  s_redir       *tmp_redir = NULL;
  int           ret = 0;

  tmp_redir = node;

  while (tmp_redir != NULL)
  {
    if (ret == 1)
      return (1);

    tmp_redir = tmp_redir->next;
  }
  return (ret);
}
